﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using YawetagDemo.Framework.Server.Data;

namespace YawetagDemo.Framework.Server.Services
{
    [ServiceContract(SessionMode = SessionMode.Required)]
    public interface IWCFCoreService
    {
        [OperationContract] WCFPerson GetPerson(int personID);
        [OperationContract] IList<WCFPerson> GetPersons();
        [OperationContract] WCFPerson CreatePerson(string name, DateTime? dob);
        [OperationContract] WCFPerson UpdatePerson(int personID, string name, DateTime? dob);
        [OperationContract] void DeletePerson(int personID);
    }
}
